<template>
  <div style="width:100%;height:100%;">
    <template v-for="(item, i) in 3">
        <div :key="i" :style="randomColorStyle()">
            <el-button type="success">
                按钮111
            </el-button>
        </div>
    </template>
  </div>
</template>
<script>
const childrenProps = {};

export default {
    component : {
    },
    data(){
        return {
            //data定义
            array1:[1,2,3,4],
        };
    },
    methods: {
        randomColorStyle() {
            var col = "#";
            for (var i = 0; i < 6; i++) col += parseInt(Math.random() * 16).toString(16);
            return {'background-color':col,'height':'100px'};
        }
    },
}
</script>
<style type="css" scoped>
    .demo-list-wrap {
        width: 100%;
        max-width: 360px;
      }
</style>